﻿function LoginViewModel(model) {
    var selfLogin = this;
    ko.mapping.fromJS(model, {}, selfLogin);

    selfLogin.Account.extend({ accountOrEmail: "" });;
    selfLogin.Password.extend({ required: "" });;

    selfLogin.FailedSubmit = ko.observable();
}